<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html><head><title>QScriptSyntaxCheckResult Class Reference</title><style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }
td.postheader { font-family: sans-serif }
tr.address { font-family: sans-serif }
body { background: #ffffff; color: black; }
</style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr /><td align="left" valign="top" width="32"><img align="left" border="0" height="32" src="images/rb-logo.png" width="32" /></td><td width="1">&#160;&#160;</td><td class="postheader" valign="center"><a href="../pyqt4ref.html"><font color="#004faf">Home</font></a>&#160;&#183; <a href="classes.html"><font color="#004faf">All Classes</font></a>&#160;&#183; <a href="modules.html"><font color="#004faf">Modules</font></a></td></table><h1 align="center">QScriptSyntaxCheckResult Class Reference<br /><sup><sup>[<a href="qtscript.html">QtScript</a> module]</sup></sup></h1><p>The QScriptSyntaxCheckResult class provides the result of a script syntax check. <a href="#details">More...</a></p>
<h3>Types</h3><ul><li><div class="fn" />enum <b><a href="qscriptsyntaxcheckresult.html#State-enum">State</a></b> { Error, Intermediate, Valid }</li></ul><h3>Methods</h3><ul><li><div class="fn" /><b><a href="qscriptsyntaxcheckresult.html#QScriptSyntaxCheckResult">__init__</a></b> (<i>self</i>, QScriptSyntaxCheckResult)</li><li><div class="fn" />int <b><a href="qscriptsyntaxcheckresult.html#errorColumnNumber">errorColumnNumber</a></b> (<i>self</i>)</li><li><div class="fn" />int <b><a href="qscriptsyntaxcheckresult.html#errorLineNumber">errorLineNumber</a></b> (<i>self</i>)</li><li><div class="fn" />QString <b><a href="qscriptsyntaxcheckresult.html#errorMessage">errorMessage</a></b> (<i>self</i>)</li><li><div class="fn" />State <b><a href="qscriptsyntaxcheckresult.html#state">state</a></b> (<i>self</i>)</li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The QScriptSyntaxCheckResult class provides the result of a script syntax check.</p>
<p>QScriptSyntaxCheckResult is returned by <a href="qscriptengine.html#checkSyntax">QScriptEngine.checkSyntax</a>() to provide information about the syntactical (in)correctness of a script.</p>
<hr /><h2>Type Documentation</h2><h3 class="fn"><a name="State-enum" />QScriptSyntaxCheckResult.State</h3><p>This enum specifies the state of a syntax check.</p>
<p><table border="1" cellpadding="2" cellspacing="1" class="valuelist" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>QScriptSyntaxCheckResult.Error</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">The program contains a syntax error.</td></tr>
<tr><td valign="top"><tt>QScriptSyntaxCheckResult.Intermediate</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">The program is incomplete.</td></tr>
<tr><td valign="top"><tt>QScriptSyntaxCheckResult.Valid</tt></td><td align="center" valign="top"><tt>2</tt></td><td valign="top">The program is a syntactically correct Qt Script program.</td></tr>
</table></p>
<hr /><h2>Method Documentation</h2><h3 class="fn"><a name="QScriptSyntaxCheckResult" />QScriptSyntaxCheckResult.__init__ (<i>self</i>, <a href="qscriptsyntaxcheckresult.html">QScriptSyntaxCheckResult</a>)</h3><p>Constructs a new <a href="qscriptsyntaxcheckresult.html">QScriptSyntaxCheckResult</a> from the <i>other</i> result.</p>
<a name="//apple_ref/cpp/instm/QScriptSyntaxCheckResult/~QScriptSyntaxCheckResult" />
<h3 class="fn"><a name="errorColumnNumber" />int QScriptSyntaxCheckResult.errorColumnNumber (<i>self</i>)</h3><p>Returns the error column number of this <a href="qscriptsyntaxcheckresult.html">QScriptSyntaxCheckResult</a>, or -1 if there is no error.</p>
<p>See also <a href="qscriptsyntaxcheckresult.html#state">state</a>() and <a href="qscriptsyntaxcheckresult.html#errorLineNumber">errorLineNumber</a>().</p>
<a name="//apple_ref/cpp/instm/QScriptSyntaxCheckResult/errorLineNumber" />
<h3 class="fn"><a name="errorLineNumber" />int QScriptSyntaxCheckResult.errorLineNumber (<i>self</i>)</h3><p>Returns the error line number of this <a href="qscriptsyntaxcheckresult.html">QScriptSyntaxCheckResult</a>, or -1 if there is no error.</p>
<p>See also <a href="qscriptsyntaxcheckresult.html#state">state</a>() and <a href="qscriptsyntaxcheckresult.html#errorMessage">errorMessage</a>().</p>
<a name="//apple_ref/cpp/instm/QScriptSyntaxCheckResult/errorMessage" />
<h3 class="fn"><a name="errorMessage" />QString QScriptSyntaxCheckResult.errorMessage (<i>self</i>)</h3><p>Returns the error message of this <a href="qscriptsyntaxcheckresult.html">QScriptSyntaxCheckResult</a>, or an empty string if there is no error.</p>
<p>See also <a href="qscriptsyntaxcheckresult.html#state">state</a>() and <a href="qscriptsyntaxcheckresult.html#errorLineNumber">errorLineNumber</a>().</p>
<a name="//apple_ref/cpp/instm/QScriptSyntaxCheckResult/state" />
<h3 class="fn"><a name="state" /><a href="qscriptsyntaxcheckresult.html#State-enum">State</a> QScriptSyntaxCheckResult.state (<i>self</i>)</h3><p>Returns the state of this <a href="qscriptsyntaxcheckresult.html">QScriptSyntaxCheckResult</a>.</p>
<a name="//apple_ref/cpp/instm/QScriptSyntaxCheckResult/operator=" />
<address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt&#160;snapshot-4.7.1-5014f7c72a58 for X11</td><td align="center" width="50%">Copyright &#169; <a href="http://www.riverbankcomputing.com">Riverbank&#160;Computing&#160;Ltd</a> and <a href="http://www.qtsoftware.com">Nokia</a> 2010</td><td align="right" width="25%">Qt&#160;4.6.1</td></tr></table></div></address></body></html>